/*
 *  Copyright 2007 Google Inc.

 * 	Licensed under the Apache License, Version 2.0 (the "License");
 *	you may not use this file except in compliance with the License.
 *	You may obtain a copy of the License at
 
 *  	http://www.apache.org/licenses/LICENSE-2.0

 *	Unless required by applicable law or agreed to in writing, software
 *	distributed under the License is distributed on an "AS IS" BASIS,
 *	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *	See the License for the specific language governing permissions and
 *	limitations under the License.

 */

package com.byjyate.rssdreamwork;

import javax.jdo.annotations.*;
import com.google.appengine.api.users.*;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class RssInfo {
	@PrimaryKey
	@Persistent
	private String rssId;
	@Persistent
	private String title;
	@Persistent
	private String link;
	@Persistent
	private String description;
	@Persistent
	private String transformCommands;
	@Persistent
	private User owner;
	@Persistent
	private int hash;
	
	public String getRssId() {
		return rssId;
	}

	public void setRssId(String rssId) {
		this.rssId = rssId;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getLink() {
		return link;
	}

	public void setLink(String link) {
		this.link = link;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getTransformCommands() {
		return transformCommands;
	}

	public String[] getTransformCommandList() {
		return transformCommands.split("\r\n|\n");
	}

	public void setTransformCommands(String transformCommands) {
		this.transformCommands = transformCommands;
	}

	public User getOwner() {
		return owner;
	}

	public void setOwner(User owner) {
		this.owner = owner;
	}
	
	public int getHash() {
		return hash;
	}
	
	public void setHash(int hash) {
		this.hash = hash;
	}
}
